﻿namespace KinonekoSoftware.ArkSpark.Runtimes.Presenters
{
    public sealed class ReferencePresenter : DocumentElementPresenter<ReferenceElement>
    {
        public ReferencePresenter(ReferenceElement element) : base(element)
        {
            //
            //
            RaiseUpdated(nameof(Content));
        }


        public string Content
        {
            get => TargetElement.Content;
            set
            {
                TargetElement.Content = value;
                //
                // 报告已更改
                ElementUpdatedEventArgs.OnNext(Bus);
                RaiseUpdated();
            }
        }
    }
}